using System;
using System.Collections.Generic;
using System.Text;

namespace XProject.Entity
{
   public class Phone
    {
        int id;
        string phonenum;
        PhoneType type;
        string note;
       bool isChanged=true;
        #region constructor
        public Phone() {
            id = -1;
            phonenum = "";
            type = new PhoneType();
            note = "";            
        }
        public  Phone(int _id, string _num,PhoneType _type ,string _note)
        {
            this.PhoneID = _id;
            this.PhoneNumber = _num;
            this.PhoneType = _type;
            this.Note = _note;         
        }
        #endregion
        #region properties
        public int PhoneID
        {
            get { return id; }
            set { id = value; }
        }
        public string PhoneNumber
        {
            get { return phonenum; }
            set { phonenum = value; isChanged = true; }
        }
        public PhoneType PhoneType
        {
            get { return type; }
            set { type = value; }
        }
        public string Note
        {
            get { return note; }
            set { note = value; }
        }
       public bool IsChanged
       {
           get { return isChanged; }
           set { isChanged = value; }
       }
        #endregion
    }
}
